package com.ruoyi.web.controller;

import com.ruoyi.common.constant.HttpStatus;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author cql
 */
@RestController
public class Error404Controller {

    @GetMapping("/404")
    public AjaxResult error404() {
        AjaxResult error = AjaxResult.error(HttpStatus.NotFound.getCode(), HttpStatus.NotFound.getMessage());
        return error;
    }

}
